// --- Open upload file window
function OpenUpLoad(fName,cName,IsImage) {
    var url = "uploadfile.php?fName="+fName+"&cName="+cName+"&IsImage="+IsImage;
    window.open(url,'UploadFile','height=40,width=400,resizable=no,top=300,left=300');
}

function OpenUpLoad2(fName,cName,IsImage) {
    var url = "uploadfile2.php?fName="+fName+"&cName="+cName+"&IsImage="+IsImage;
    window.open(url,'UploadFile','height=40,width=400,resizable=no,top=300,left=300');
}

onclick="OpenUpLoad('cases_edit','cases_thumb',1)"